package msgs;

/**
 * Message used for requesting PM setup
 * Team 9: Andrew Hayworth, Brian Parrella, Ryan Kortmann, Nina Papa
 * @author Andrew Hayworth
 */
public class PMMsg extends ClientMsg {
	private int special_response;	// 0 = ok, 1 = deny, 2 = offline, 3 = back online, stop sending offline pms!
									// this is terrible, i was using enums, but somethings broken and this NEEDS to work NOW.
	private String wantsUser;
	private String msg;
	private boolean offline = false;
	private String userIP;
	
	public PMMsg(String ip, String name, String pwd, byte[] key, String wantsUser) {
		super(ip, name, pwd, key);
		this.wantsUser = wantsUser;
	}
	public PMMsg(String ip, String name, String pwd, byte[] key, String wantsUser, String msg, boolean offline) {
		this(ip, name, pwd, key, wantsUser);
		this.msg = msg;
		this.offline = offline;
	}
	/**
	 * @return the wantsUser
	 */
	public String getWantsUser() {
		return wantsUser;
	}
	/**
	 * @param wantsUser the wantsUser to set
	 */
	public void setWantsUser(String wantsUser) {
		this.wantsUser = wantsUser;
	}
	/**
	 * @return the msg
	 */
	public String getMsg() {
		return msg;
	}
	/**
	 * @param msg the msg to set
	 */
	public void setMsg(String msg) {
		this.msg = msg;
	}
	/**
	 * @return the offline
	 */
	public boolean isOffline() {
		return offline;
	}
	/**
	 * @param offline the offline to set
	 */
	public void setOffline(boolean offline) {
		this.offline = offline;
	}
	/**
	 * @return the userIP
	 */
	public String getUserIP() {
		return userIP;
	}
	/**
	 * @param userIP the userIP to set
	 */
	public void setUserIP(String userIP) {
		this.userIP = userIP;
	}
	
	
	public int getSpecialResponse() {
		return special_response;
	}
	public void setSpecialResponse(int i) {
		this.special_response = i;
	}
	
}
